export default {
    methods: {
        hello: function () {
            console.log('hello from mixin!')
        },
        showLoading(text = '加载中') {
            this.$Spin.show({
                render: (h) => {
                    return h('div', [
                        h('Icon', {
                            'class': 'demo-spin-icon-load',
                            props: {
                                type: 'load-c',
                                size: 18
                            }
                        }),
                        h('div', text)
                    ])
                }
            })
        }
    }
}